package com.example.pipibee.pojo.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * 插入_住院病案_手术表_的参数类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DoctorSurInsertParam implements Serializable {

    private String mrInId;

    @NotNull(message = "添加失败，请填写病案号！")
    private Long mrNum;

    @NotNull(message = "添加失败，请填写手术类型！")
    @Min(value = 1, message = "添加失败，患者手术类型的值最小为1！")
    @Max(value = 2, message = "添加失败，患者手术类型的值最大为2！")
    private Integer surType;

    @NotEmpty(message = "添加失败，请填写手术记录！")
    private String surData;

    @NotNull(message = "添加失败，请填写术后恢复情况！")
    @Min(value = 1, message = "添加失败，患者术后恢复情况的值最小为1！")
    @Max(value = 9, message = "添加失败，患者术后恢复情况的值最大为9！")
    private Integer postoperativeRecovery;

    @NotEmpty(message = "添加失败，请填写主刀医师！")
    private String doctor;
}
